#include "taskboardrequest.h"

namespace Wishmaster {

TaskBoardRequest::TaskBoardRequest(const QString& chanName, const QString& boardId, const Wishmaster2::Network::Url& link, const QString& msg,
		Wishmaster2::Network::RequestManager* connector)
	: TaskRequest(TaskRequest::rtBoard, link, msg, connector),
	m_chanName(chanName),
	m_boardId(boardId)
{
}

QString TaskBoardRequest::chanName() const
{
	return m_chanName;
}

QString TaskBoardRequest::boardId() const
{
	return m_boardId;
}

void TaskBoardRequest::onRequestDone()
{
	QByteArray arr(request()->content()->data(), request()->content()->size());
	emit result(this, arr);
}

}
